﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Domain.Repository
{
    public interface IQueryCacheService
    {
        T Get<T>(object key) where T : class;

        T Get<T>(object key, QueryParameters parameters) where T : class;

        void Add<T>(object key, T instance) where T : class;

        void Add<T>(object key, QueryParameters parameters, T instance) where T : class;

        void Clear();

        bool Contains(object key);

        bool Contains(object key, QueryParameters parameters);
    }
}
